package com.njsf.service;

import com.njsf.dto.ResponseJson;
import com.njsf.pojo.Cart;
import com.njsf.pojo.CartPlus;
import org.springframework.stereotype.Service;

import java.util.List;

public interface CartService {

    /**加入购物车
     * @param cart
     * @return
     */
<<<<<<< HEAD
    ResponseJson addCart(Cart cart) throws Exception;
=======
    ResponseJson addCart(Cart cart);
>>>>>>> 180ace60693232df69575b4f82fc34aeb3fc90e8

    /**通过用户id查询购物车信息
     * @param userId
     * @return
     */
    List<CartPlus> findAllByUser(Integer userId);



}
